import request from '@/utils/request'
// 展示邮件配置
export const getEmailConfig = (id = null) => request({
  url: `/admin/email/config?id=${id}`,
  method: 'get'
})

// 新增邮件配置
export const createEmailConfig = (data) => request({
  url: '/admin/email/config',
  method: 'post',
  data
})

// 修改邮件配置
export const updateEmailConfig = (data) => request({
  url: '/admin/email/config',
  method: 'put',
  data
})

// 修改邮件配置
export const deleteEmailConfig = (data) => request({
  url: '/admin/email/config',
  method: 'delete',
  data
})

// 查询全部配置
export const pageQuery = (data) => request({
  url: '/admin/email/config/all',
  method: 'post',
  data
})
